// page/category/flowers.js
Page({
  data: {
    activeIndex: 0,
    listItems: [
      
    ]
    },
  onReady() {
    var app = getApp()
    // console.log(app.globalData.host)
    var that = this;
    wx.request({
      url: app.globalData.host + '&g=App&m=Category&a=flowers', //仅为示例，并非真实的接口地址
      data: {},
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        that.setData({
          listItems: res.data.d,
        })
      }
    })
  }, 

})